package com.fansmac.sc.service.impl;

import com.fansmac.sc.service.DemoApi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class DemoApiImpl implements DemoApi {

    private static final Logger LOGGER = LoggerFactory.getLogger(DemoApiImpl.class);

    @Override
    public String payment(long amount) {
        LOGGER.info("payment amount={}", amount);
        return String.valueOf(amount);
    }

    @Override
    public String echo(String content) {
        LOGGER.info("echo content={}", content);
        return content;
    }

}
